1. There may be mutual nesting in the XSD file, which means the XSD is powerless.
Http://geekswithblogs.net/mnf/archive/2008/07/22/generate-c-class-from-xsd-file.aspx
| Home | "Login Failed for user" may mean "database name is invalid"> Generate
There was an error in configuring Spring XML todaymultiple annotations found at the: -schema_reference.4:failed to read schema document ' HTTP://WWW.SPRINGFR Amework.org/schema/context/spring-context-4.2.xsd ', because 1) could not find the
1. Why Web. XML has different versions of the XSD reference:
JDK dependent change;
or the servlet (JAVA EE) itself API changes;
2. Why there is a difference between DTD and XSD two versionsAs I saw in this article, the author
All along the project in the XML format of the decision to use the DTD format, until recently discovered, do not know when all have been converted to XSD for judgment and verification, so today specifically looking for information to see, have to
XML is not unfamiliar to us, it has a wide range of uses in enterprise-class applications. Specifically, no longer said, the following describes the difference between dtd,xsd and XSD as an example to see the definition and use of spring.
1.DTD
A problem occurs when spring2 application is not connected to the Internet recently:
Warn [main] xmlbeandefinitionreader. Warning (47) | ignored XML Validation warningOrg. xml. Sax. saxparseexception: schema_reference.4: failed to read schema
This article is based on the refactoring of Sqlsessionfactorybean and briefly reviews what it does:
New Sqlsessionfactorybean, the initial code and mybatis-spring are the same;
Reconstruct the Buildsqlsessionfactory () method, and
error message: Attribute "xmlns" was already specified for element "Web-app" due to the renaming of the project, there is an xmlns duplicate assignment, This might be a way for eclipse to set itself up to re-match the appropriate configuration for
The spring xmlns namespace is available from:http://www.springframework.org/schema/Select as required: 1, select: AOP2, copy the browser address, paste in the configuration file xmlns:aop= "", if it is contest xmlns:contest= " "
Open the vs command window,
Enter the command: XSD file. xml [/outputdir: Directory] [/parameters: file. xml]
Example:
Appendix 1: categories. xml
XML Version = " 1.0 " Encoding = " UTF-8 " ?> Categories > Category >
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.